//
//  BaseViewController.swift
//  RxSwiftExample
//
//  Created by lxf on 2021/11/23.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        noneEdgesForExtendedLayout()
        
        initSubViews()
        addConstraints()
        addRxSwift()
    }
    
    func initSubViews() {
        
    }
    
    func addConstraints() {
        
    }

    func addRxSwift() {
        
    }
    
}

extension BaseViewController {
    
    func noneEdgesForExtendedLayout() {
        //不会被navigationbar和tabbar覆盖掉
        self.navigationController?.navigationBar.isTranslucent = false
        self.extendedLayoutIncludesOpaqueBars = false
        self.edgesForExtendedLayout = []
    }
    
}
